Add TUI table overrides for 5 high-traffic list commands#4732
Open
simonfaltum wants to merge 6 commits intosimonfaltum/list-tui-overridesfrom
Open
Add TUI table overrides for 5 high-traffic list commands#4732simonfaltum wants to merge 6 commits intosimonfaltum/list-tui-overridesfrom
simonfaltum wants to merge 6 commits intosimonfaltum/list-tui-overridesfrom
Conversation
Collaborator
|
Commit: c1cdd19
16 interesting tests: 7 KNOWN, 7 SKIP, 2 flaky
Top 20 slowest tests (at least 2 minutes):
|
Contributor
shreyas-goenka
left a comment
There was a problem hiding this comment.
Note: This review was posted by Claude (AI assistant). Shreyas will do a separate, more thorough review pass.
Priority: LOW — Clean mechanical PR
This is a straightforward PR that adds TUI table overrides for 5 commands. No bugs or correctness issues found.
Minor Nits
- Unused
listReqvariables: Several overrides declarelistReq(e.g.,listReq := &catalog.ListCatalogsRequest{}) that is never used after flag binding. Consider using_or removing if unneeded. - Consistency: The pattern matches the existing override style in the codebase, which is good.
What looks good
- Clean, consistent pattern across all 5 overrides
- Correct use of
tableview.RegisterConfigfor each command - Proper column selection for each resource type
No blocking issues.
Several list override functions declared a named request parameter (e.g. listReq) that was never used after flag binding. Replace these with blank identifiers to satisfy go vet and make intent clearer. The parameter is kept named in clusters, jobs, pipelines, and workspace overrides where it is actively used for flag binding or search closures.
Previously, RenderIterator and RunPaginated only returned the error from tea.Program.Run(), ignoring any fetch error stored in the model. An API error mid-stream would display an error screen in the TUI but the command would still exit 0. Now both functions inspect the final model via the new Err() accessor and return the fetch error if set. Also documents the destructive MaxWidth truncation behavior on ColumnDef and renderContent.
…ui-overrides-2 # Conflicts: # libs/cmdio/render.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
PR #4731 added curated TUI table overrides for 15 list commands. This follow-up covers 5 additional commands that are among the most frequently used in the CLI, but were missing curated columns.
Changes
Before: these 5 commands used either generic text templates (secrets, cluster-policies) or raw JSON output (lakeview, pipeline events) with no curated TUI table columns.
Now: all 5 register curated TableConfig overrides so they show useful columns in the interactive TUI. Commands that had no text template override (lakeview list, pipelines list-pipeline-events) also get template annotations for the non-interactive fallback.
This PR stacks on #4731. It only adds per-command overrides, no engine changes.
Test plan
go build ./...make checkspassesmake lintfullpasses (0 issues)secrets list-scopes,lakeview list,pipelines list-pipeline-events